Answers for JavaScript Online Test - Online Exam - Online Quiz - Mock Test
←Go Back to Online Practice TestQues. What is the correct syntax for referring to an external script called "xxx.js"? |
Option 1. <script type="text/javascript" name="xxx.js"> |
Option 2. <script type="text/javascript" src="xxx.js"> |
Option 3. <script type="text/javascript" href="xxx.js"> |
Ans. Option 2 |
Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website. |
Enter Reason |
Is it helpful?
Yes
No